#include<stdio.h>
void BitDevide(int number);
int main(void)
{
    int i;
    scanf("%d", &i);
    printf("The input number is %d\n", i);
    BitDevide(i);
    return 0;
}

void BitDevide(int number)
{
    int temp_num;
    temp_num = number / 10;
    if(temp_num != 0)
    {
        BitDevide(temp_num);
    }
    printf("%d\n", number % 10);
}